//
//  MEFlickrPhoto.h
//  FlickrImport
//
//  Created by Sandeep Chayapathi on 1/18/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#include <Carbon/Carbon.h>
#include <ApplicationServices/ApplicationServices.h>

@interface MEFlickrPhoto : NSObject {
    NSString *photoId;
    NSString *owner;
    NSString *secret;
    NSString *server;
    NSString *title;
    NSString *originalSecret;
    NSDictionary *exif;
    NSDictionary *element;
    NSString *downloadPath;
    
    int isPublic;
    int isFamily;
    int isFriend;
     
}

- (NSDictionary *) exif;
- (void) setExif: (NSDictionary *) tmp;
- (NSString *) photoId;
- (void) setPhotoId: (NSString *) tmp;
- (NSString *) owner;
- (void) setOwner: (NSString *) tmp;
- (NSString *) secret;
- (void) setSecret: (NSString *) tmp;
- (NSString *) server;
- (void) setServer: (NSString *) tmp;
- (NSString *) title;
- (void) setTitle: (NSString *) tmp;
- (int) isFamily;
- (void) setIsFamily: (int) tmp;
- (int) isPublic;
- (void) setIsPublic: (int) tmp;
- (int) isFriend;
- (void) setIsFriend: (int) tmp;
- (NSString *) originalSecret;
- (NSString *) getURL;
- (NSString *) downloadPath;
- (void) downloadPath: (NSString *) tmp;

- (void) downloadPhotoTo: (NSString *) directory;
- (void) downloadDidFinish:(NSURLDownload *)download;
- (void) download:(NSURLDownload *)download didFailWithError:(NSError *)error;

- (void) addExifData;
-(NSNumber *) getNumberFrom: (NSString *) str;

@end
